[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            rnormalize - fix precision

  Syntax              void rnormalize(struct REAL *r1, struct REAL *r2);

  Prototype in        real.h

  Remarks             rnormalize normalizes the precision of the reals r1
                      and r2, such that both values have equal precision.
                      Only the precision and fractional portion of the
                      real adjusted will be modified.

                      If _r_maximum is TRUE, the number with the smaller
                      precision has its fractional portion extended to
                      match the precision of the other real. If
                      _r_maximum is FALSE, the number with the larger
                      precision has its fractional portion truncated to
                      match the precision of the other real.

                      After returning, the global variables _r_maxpre and
                      _r_minpre will contain the minimum and maximum
                      precision of the reals r1 and r2 before any
                      adjustments were made.

                      Refer to the section SIMULATED FP MATH for further
                      details.

  Return value        nothing.

  See also            _r_maximum, _r_maxpre, _r_minpre
                      radd(), rceil(), rdiv(), rfloor(), rnegate(),
                      rsign(), rsub()


This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson